package com.x.sys.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.x.common.bo.JsonResult;
import com.x.common.bo.PageObject;
import com.x.sys.entity.Order;
import com.x.sys.service.SysOrderService;


@RestController
@RequestMapping("/order/")
public class SysOrderController {
	@Autowired
	private SysOrderService sysOrderService;
	
	@RequestMapping("doFindPageObjects")
	public JsonResult doFindPageObjects(String number,
			Integer pageCurrent) {
		PageObject<Order> pageObject = 
				sysOrderService.findPageObjects(number, pageCurrent);
		return new JsonResult(pageObject);
	}
}
